package com.fasteat.search.service;

import com.fasteat.search.entity.Page;
import com.fasteat.search.entity.SearchCondition;
import org.elasticsearch.search.sort.SortOrder;

import java.util.Map;

public interface MallProductSearchService {

	/**
	 * 高亮分页排序搜索商品
	 *
	 * @param searchCondition
	 * @return
	 */
	public Page searchWithHighlightAndPageAndSort(SearchCondition searchCondition, Map<String, SortOrder> sortMap);


	/**
	 * 通过商品id删除商品
	 * @param id
	 * @return
	 */
	boolean removeProductById(String id);
}
